<template>
  <div>
    directive
    <span v-permission="['admin']">admin</span>
    <div v-permission="['editor']">editor</div>
  </div>
</template>
<script>
import permission from '@/directive/permission'
export default {
  name: 'DirectivePermission',
  directives: {
    permission
  }
}
</script>
